const STORAGE_KEY = 'mall';
export default {
    //存储值
    setItem(key, value) {
        let val = this.getStorage();
        val[key] = value
    },
    getItem(key,module_name){
       let val = this.getStorage()[module_name]
        if(val) return val[key]
    },
    getStorage(){
        return JSON.parse(window.sessionStorage.getItem(STORAGE_KEY) || '{}');
    },
    clear(){

    }
}
